configure: Replace -no_weak_symbols with -Werror=partial-availability