Building on newer OSX versions without xcode command line tools

Somebody please review the autoconf change, it should be well isolated though.

This allows to build on OSX 10.10 as well (also applies to tokend, which still works, to some extent)