Nil is defined as NULL on OSX.
OSX: Support macports glibtoolize.
OSX: Didn't find headers if already installed.
Merge pull request #28 from Socapex/master

Various small fixes for OS X.