Fix for 64bit compile