Currently we exclude building the touch and gesture files when building without the Apple Internal SDK. It's sufficient to exclude these files when the corresponding feature define is disabled.
Created attachment 237503 [details] Patch
Committed r173189: <http://trac.webkit.org/changeset/173189>