No more ._S files
Fixing some warnings and adding get_interrupt_state() and set_interrupt_state() functions.