Fix error with extra link options

This is a workaround to fix an error from emcc by ignoring extra link options.