Merge pull request #8 from kazeburo/master

Set REMOTE_PORT environment variable
reduced rt_sig* syscalls. use flags instead ot local $SIG{}