Add -Wl for linking with gcc for the emulator