fix assorted build breaks that new users might trip over.

One can build opencog on a system with almost no dev packages installed. As users add *-dev packages needed for dependencies, various build breaks can occur,. This fixes them.