compiles and links statically with custom openssl