Fix in pocketsphinx for inline function in header file that is ignored by clang
small improvements in error checking
Added live demo