Fix tcsetpgrp on OSX

Also reported in issue #64