compilation script fixes