Fixed compilation script