turns out libwinpthread was still needed