Modified some things so it works with MSVC