Building on newer OSX versions without xcode command line tools

Somebody please review the autoconf change, it should be well isolated though.