VC++: Fixed compile errors