Fix build to remove hardcoded paths, etc. Now builds on OS X