Make sure that compiler flags are forwarded on to google-mock.

Also make sure to test for that