Split compile script into Install and Recompile, to avoid compilation errors on the first installation.