Log more detailed diagnostics in the log file during completion errors.
Fix #12, configure cmake to use rpath.
make the rpath option added in efa37fe configurable and document it.