Mac was giving errors about position dependent code, so had to add linker flag -Wl,-no_pie to ld & cgo.
win32 builds were giving errors so the tests are only ran on win64.