Ensure we link the header directory before building anything

And the top-level IMACRO shouldn't really be poking the src
tree...
Wrap configure rules in checks for autoconf