Include correct type for *BSD systems
Move default stack size to constant value
Load INFINITE constant on Windows from correct location
Use same function signature on Windows

LPTHREAD_START_ROUTINE also has a single argument that we use.
Remove import and cast for LPTHREAD_START_ROUTINE