Added qt-free makefile, fixed minor linking errors