Fixed remaining hw acceleration issues and cairo graphics issues in emscripten