fix some API and the cross arch call to types
fix leftovers from basicmodel
use the arch dependent ctypes
add a simple elf machine detection for getting the machine arch right
fix the autogen
comment typo