compilation on win32 + some fixes

Depends on pullrequest #86 of vle