Remove some leftover cruft.
Fix compile output path.
Better handling of dlopen() errors.