Make sure --as-needed and the other flags got checked as the last thing, workarounds...