fix 64bit compile errors (extented)