convert.c: inclusion of endian.h has to be different on APPLE platforms