compile and optimize using CodeKit