Add function to compile in release mode.