THRIFT-1462 add more strict compiler flags

Patch: Roger Meier