Updated compile scripts and added environment setup script