Replace unnecessary bad code with abstractness (coverity-52108)
Correct if statement (coverity-52107)
Add comments on what the parameters are (thanks Axel for the suggestion)
Use RTLD_DEEPBIND if it exists; fixes llvm symbol visibility on Linux.