Fix some flags for building CGM dep on Travis-CI.