install openssl dev package before installing rubies

This was needed on Ubuntu 14.04 for some reason.