Fix compiler warnings on armv7
When compiling on an armv7 (32bit), there are a few warnings related to printing 64bit numbers using printf. Switch to a portable printf token so both 32 and 64bit architectures can build without warnings.
Also replace htobe32 with htonl. htonl is more portable and available in musc libc.