Build for mac 10 7

Add flags to do proper linking for support for Mac OS X 10.7. Gets rid of illegal instruction error.