Fix compiler warnings by switching enum type back to int.
Merge pull request #6 from dwnld/THRIFT-2561

Fix compiler warnings by switching enum type back to int.