Not sure why, because flatpak-builder used to compile webkitgtk just fine, but not anymore. I get now a "call of overloaded ‘abs(gdouble)’ is ambiguous" error. It looks like some header may have been updated in the flatpak environment and causing multiple abs definitions. Using fabs() instead works around the issue.