Feature/freebsd support

I wrote this patch for FreeBSD support.

  * fix compile error
  * ignore tty_lock

Now slimlock is working on FreeBSD 9.2 amd64.