also set -arch in LDFLAGS when compiling on OSX that is not properly recognised as 64bit