wiasane: Moved GetErrorCode method to separate wiasane_util.[cpp|h]