Make extension compatible with PHP 5.6

Due to technical limitations it's not possible to support mutable
API for builds against PHP 5.6 or higher.