libtizplatform: added tiz_util_reset/set_eos_flag apis
pcm_decoder: various code clean-ups (closes #61).