Recognize shared libraries as valid files when linking

Fixes commands like `dmd -ofmain main.o libfoo.so` outputting `Error: unrecognized file extension so`
Doesn't have code for windows, but I have a feeling that linking DLLs is completely different.