apply two patches from adub

git-svn-id: http://vapoursynth.googlecode.com/svn/trunk@442 f9120d27-2007-6f97-8312-0f4ebfa7710f