Fix maximizing disabled on windows
Link with pthread on windows