Support VP9
Replace a few deprecated function calls