Add Tupfile for quad demo
Partially fix compilation on windows
Fix some of the warnings under mingw
Fix linker ordering preventing demo compilation under windows
Update quad Tupfile