updated sample programs to support mixed 32bit/64bit ABI's