Remove -static from pthreads on Windows, since it doesn't work.
Attempt to set rpath.