Fix APPLICATION_MODULE being duplicated in the command line during link. This error is currently silently ignored by the linker.