add crossbridge compilation support, needs custom byte order detection