Add OPTFLAGS
Use bundled winpthreads