[CMake] Unreviewed buildfix after r148896 and r150940.
(Cherry-picking r151083 from WebKit trunk.)