Add .gitignore
Fix compilation errors and warnings
Add QCLASS_IN and QTYPE_TXT defines