Fix building and some problems

Hello!
I have fixing function parameters for call libpssh and building. Same I write ports FreeBSD for this software. You can find it there: https://github.com/svagner/freebsd_ports/tree/master/security

Thanks for your works