fixing 64bit build warnings