Fixed compilation to work if building from shadowed directory.