fixing compile errors for x86_64 ARCH