some fixes regarding openssl cross-compilation