Fixes to build on OSX 10.9

Hi. I am trying to build in OSX 10.9 and I found many errors. In fixed many of them in the way you see here, but I am not sure about the consequences.

This refers #30.

Anyway, the build fails because the current master seems to lack the implementation of the class BINPointReader.