Correct math library calls to work with cuda 64bit builds
Merge branch 'Support64BitIds'