wrap compile in a ruby_block