Fix D3D9 hook patches for windows 8.1

This also changes the way that the patches are used as well in the code,
instead of relying on constant patch sizes, now allows for variable
patch sizes instead
Remove unnecessary loop

This loop was added years ago back when I was just learning and didn't
quite understand how x264 operated.
Fix auto-generated resource data

This resource data is automatically generated, and unless it's changed
on the remote repository, everyone else will have this resource data
changed every time they recompile.
Update to version 0.638b