fix for 64bit unix
fix for 64bit Windows
Merge branch 'fix_64bit' into fix_image_draw