Sqlite3_analyzer.exe - Entry Point Not Found

I get this error message when running sqlite3_analyzer.exe:

I’ve made sure the Tcl\bin directory is in my PATH, but the problem still occurs. While troubleshooting I noticed that the probable cause is that tcl90.dll itself cannot find zlib1.dll despite being in the same directory. I managed to make sqlite3_analyzer.exe work by copying zlib1.dll to the same directory as sqlite3_analyzer.exe, or simply just transferring sqlite3_analyzer.exe to Tcl/bin. This is not ideal though, could there have been a problem in how I compiled the executable?