g723_1: Move sharable functions to a separate file