Fixed Compile Errors in Engine and Fixed Compile in MSVS 10+

Signed-off-by: AriDEV <aridev@azet.sk>