minor fix : use the correct format for unsigned long
fixed the makefile to build properly on osx
Merge pull request #1 from xant/makefile_osx_fixes

Build on osx