Merge pull request #639 from jaybo/SetDeviceGammaRamp

BF: 504 SetDeviceGammaRamp fails on Win x64
Merge pull request #638 from jaybo/master

BF: Fix exception haveAvbin unitialized Win64 #637
FF: Avoid calling Freeze() and Thaw() on Win32
Merge pull request #643 from hsogo/master

FF: Avoid calling Freeze() and Thaw() on Win32