fix build for TSRMLS_D