Add configure script (initial), option to compile statically and without examples.
Fix sytnax errors in configure script.
Add exec code to configure script.
Rearranange qmake call a bit.
Add cleaning step before qmake is run in configure script.