Fixed HANDLE data type and added some custom typedefs.
Version bumps, gemspec update and updates to the changes file.