Can you just replace these functions with something standard?
It looks to me that BIO_dump_fp() takes a standard input and some character string and length. You could invent your own dump function that prints given amount of characters on the standard output.
Same for ERR_print_errors_fp(), replace it with something else, that has a similar purpose: print the error (check errno, or just print "cryptography error" for now, and you can fix it later after everything else works).