Set up ahead-of-time compilation, production mode, and library bundling for big performance improvements