Fixed problems when building for Win64 and using FFmpeg. fixes #106