fix the makefile, so it can be build on Mac
make the bin directory automatically
Merge pull request #3 from jatsz/master

fix the makefile for Mac