assume little endian on osx - refs #45
fix -Wunused-variable warning/errors in output
Fix -Wsign-compare warnings/errors in tests.