Fix file compilation in a different directory than current one