Revert "Fixed some MSVC specific warnings"

This reverts API breaking changes in commit 93f304a91d83ca3f58dfcdc47aecd183ee128813.