LDFLAGS changes to enable build on OSX