Fix compiler warnings on OSX.

A simple change to remove warning for compilation on OSX platform.