64bit Portability fix