Symlink support

Hi.
This commit allows emcc to take symbolic links as input files, even if link has an unsupported extension. This allows to compiles with `libfoobar.so.0.0.0`, that is often used with configure/make. This should solve half of #1037.