sdcc compilation fixes