Fixed build process on Mac OS X (issue #10)