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