Fixed compiler errors for OS X builds.
Fixed couple of compiler warnings on OS X build.
Fixing documentation error