don't use -pthread compiler option on MacOS