fix to get it compiled for Win platform