libdeng2: Cleanup

Mostly benign stuff following static analysis with clang.