It took me some time to figure out that on Debian, the package i expected to be called openssl-dev was actually called libssl-dev. It can be helpful when trying to build something that needs openssl. In my case, btpd.