Fix bugs found by clang scan-build
Backup commit. Work on parsing enough of the PE header to get the PDB file from the symbol store.