Fix install stage error observed on SmartOS.
Continue on unused constants for Clang.
Avoid conflicts with complex functions.
Be explicit about whether std or boost exception is meant, assume the
former.