ld10k1: define _GNU_SOURCE and use sighandler_t