Fix build script on Mac OS X

Added boilerplate for Windows, though I don't know the appropriate LDFLAGS for that platform.
Merge pull request #2 from blakejohnson/patch-1

Fix build script on Mac OS X