Move stringify functions into common header.
Moving forward only Qt5 and above will be supported.