Fix compiling under gcc 4.7

- Need to specify an extra flag to use protobuf headers with -fno-rtti