fix endian test for cygwin
merge with upstream
fix for ppc
merge upstream
use correct compiler macro for DragonFlyBSD
Merge pull request #15 from gray/master

use correct compiler macro for DragonFlyBSD