A compatible Threading API for PHP5.3+