MinGW fixes, thanks to LRN on #gnunet