updated sample programs to support mixed 32bit/64bit system calls