Automatic compilation script