Fixed compilation error on OSX 10.10

This issue: https://code.google.com/p/protobuf/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20FixedIn%20Owner%20Summary&groupby=&sort=&id=455