WebM support and a few fixes