SIGURG signal handler added.
Warnings fixed.