Fixed VS10 build, i cant believe the function is not supported

Fixed VS10 build, i cant believe the function is not supported