Add missing file from OpenSSL 1.0.1c and fix flags since Windows does not have dlfcn.h. (cherry-picked from b4f245f7) Change-Id: I937c1effd937dfe7922d6472c7adec063103c924