Added interrupts guards to fx3dlib's routines