Test init and some msvc fixes