Fixed compile errors on GCC (missing <memory> include and ambiguous call to isinf, see https://bugs.webkit.org/show_bug.cgi?id=59249 for info).