driveclick.cpp: support bigendian CPUs + minor cleanups