Fix remote debugging on 64bit

-Incorrect "unsigned long" everywhere