Pass compile flags to external project build command to remove the many warnings in boost and googlemock.