Added BSD queue sys header file
Moved signum header
Refactoring signal handling
Merging some signal handling code from freebsd and implementing signal handling.