More foolproof YCM compiling