Add missing Windows dependencies

Based on this MXE patch:
https://github.com/mxe/mxe/raw/8f65ba88db0582ddc71160ced4356c80e9c87b42/src/openal-1-fixes.patch
Fix Cygwin build

Cygwin's built in pthread types were also colliding with the internal
thread functions.