[12630] Remove VS2008 support and general cleanup
[12631] Use uint32 for phaseMasks in core and database