A couple of fixes to build with latest chrome master

Not quite sure about the enums one, not a c++ expert and I couldn't find a good way to do unsigned enums, though it seems to build at least. I'm using gcc 4.8.1 here.