Remove setbit and clrbit
Remove isset() and isclr()
Fix some compilation errors