common: fix check for big endian arches

Fix for: https://bugzilla.redhat.com/show_bug.cgi?id=905411
Merge pull request #165 from metalefty/fix-for-big-endian-arches

common: fix check for big endian arches
common: some minor changes to arch.h
chansrv: allow multiple xrdpapi connections