Move a struct to the actual place where it's used

It's not related to the config reader.
Share one implementation of the CReadConfig class between the decoder and encoder console apps
Merge pull request #1045 from mstorsjo/share-read-config

Share one implementation of CReadConfig between both console apps