fix libraw for windows using visual studio 2010
Fix bad casts in thread intrinsics that broke some platforms