Add support for "release with debug info" mode on OpenBSD/g++.
Force target ordering, or building of docs could fail due to lack
of qdoc executable. There is no easy way to tweak dependencies,
so use the less evil (from the actual porter's perspective) for now.