Stupid mac-specific changes for makefile, active account detection (simplest change, as a start)

Makefile changes: xmlstarlet isn't as expected, mktemp needs a
parameter, difference for extended regexes.
Just testing with snapshots right now, don't plan to upload for a while.