Fix build script to auto-compile oldsims