fix for msvc12 error with ctor