Some bugfixes for PHP 5.5.x. Set version to 1.0.2