frist fixes for msvc -> wont be easy :/