add missing unistd.h includes
add -lcrypto to libssl_LIBS