lposix.c: add support for SA_* flags when establishing a signal handler