Merge pull request #1 from awein/zevo

Add second path to getopt as fallback (Homebrew support)
locking code rewrite.
doc updates