Add -Wl for linking with gcc for the emulator

First pull request.