Allow cross compiling and respect win32 target (works fine with mxe)