function define for compiling with windows
Ugly buildscript for windows