Fix stack corruption in Windows 64bit

Please, also propagate this change to the SDK available for download, since it's not limited to the ROS package. 

Cheers.