Add some tests and a Makefile
more tests
also support the __sysv_signal function from glibc