issue #1661: Added CrystalCraze for win32 and fix some compilation errors.