Fixed a bug related to dlsym() behavior on Linux (requires -export-dynamic linker flag if you want to find statically-linked symbols)
Fixed a bug related to fclose() on Linux (it doesn't like being called on invalid filehandles)
Fixed test that was leaving garbage files whenever it failed