src/ext/{boost,yaml-cpp}: improve the build infrastructure

- Remove directories that can be creared at build time.

- Deal with @builddir@ != @srcdir@, when it is easy to do that.

- Use more standard variable names.