When building on Windows with OpenSSL, the file applink.c needs to be compiled into the executable.
With CMake this can be done by adding:
target_link_libraries(target PRIVATE OpenSSL::applink)
This is apparent when trying to run the NetSSL test suite on Windows.