No need to pass version by reference
Fix various warnings from VC++ 2014 and add missing include