Fix build script on Mac OS X

Added boilerplate for Windows, though I don't know the appropriate LDFLAGS for that platform.

Fixes #1