Fix Linux backend by filling in the missing thread backend bits
Fix warnings reported by GCC 4.6