various fixes for fteproxy build on windows