Fix build on OSX and reduce warnings.
More OSX fixes for the WebView.
Allow more configurable drawing models in webview include Core Animation.