Fix support for non-'.o' object files.