Fixing 4.6.2 build errors

4.6.2 complains about C++11 standard and an undefined MaskInit