a few changes, if you like ...

support building as part of the PHP build process, static/dso/phpize, whatever
does not require the dso to be loaded as a zend extension ( by registering the zend extension for the optimizer in minit )
does not call tsrmls_fetch on request init/shutdown
removes accel_free_ts_resources, it is not appear to be required