Make use of "standard" be(16|32|64)toh() functions

Change-Id: I3c2e200ad999e2db9615c23524439296406178d0