make compilation possible on gcc 4.4
allow negative numbers for -target and -bttarget
bugfix watchdog thread