php-pecl-termbox: add upstream patch, fix build, add reflection