Remove signals code since it does not seem to work anyway.

This also fixes linking and importing problems in Linux.

This is towards fixing #1.