A few useful changes

Suggest you may want to pull these changes -- it makes it no longer use a global variable to determine endian-ness (since the program would need to be recompiled for a different-endian host anyway).  This has the (quite important) effect of letting configure find the library... Also adds a commandline option (from GreySyntax)

Sam