fixed compiler errors (for windows at least)