Updated Build System for OS X Compatibility