basic routines for phpize mode to

- generate headers for non core ext defines
- generate js deps for non core exts