Fixed #261 compile error on FreeBSD

FreeBSD doesn't use #define for pthread constants, its an enum.