Fix compilation with MinGW
Add an example of QT application that use the lib