cleanup of scan_rar for OSX

- cleaned up clang warnings
- removed unnecessary anonymous unions from unrar codebase
- unrar now threadsafe without thread local storage
- scan_rar correctly builds when configured with --enable-rar