Fix precompile for production using variables