Fix m2crypto and libopenssl builds