Check architecture of library to load.
Support loading (and running) EXE files (fixes #7).