Fixes to enable SNAP to link and build on *nix/Mac.
Merge pull request #28 from fnothaft/build-fixes-nix

Build fixes for *nix