Added support for compiling under MacOSX
Added Makefile for MacOSX and fix library paths