Merge Ubuntu 13.10 issue with incompatible libboost1.54-all-dev from m4 macros into configure.am and doc/unix-build.md

Cleaner code, keeping configure errors in configure.am and out of m4 macro.