Fix libnut/ffmpeg compilation on i686-pc-mingw32

This is rebased on #257. Fixes #255.