An effort to make PocketSphinx working

- more logging implemented
- few fixed to the C code

Still, the code mysteriously cannot listen to the user when run by the daemon.
Tests are passed, however.