Here should be libeay32.dll, not libeay32.lib. Under Linux it links properly only with shared library.