Better compile command generation