disabled googlemock and googletest on gcc < 4.8

Disable googlemock and googletest based tests if gcc < 4.8.
See https://groups.google.com/forum/#!topic/googlemock/XvPDUENM5JM