fix for php versions < 5.3 (replaced use of ReflectionProperty::setAccessible that was only added in PHP 5.3.0)