ibrdtn: Fix endianess conversion for win32 and OSX

Use GLIB methods again since they seems to be more optimized.
ibrdtn: Fix glib2 library / endian.h checking