Improve compass compilation in deployment