Get the source code from the libraries. With this method you will not only need to get the libraries ScummVM uses directly, but also those they depend on.
** [https://www.libsdl.org SDL 1.2
or SDL 2 ]
** [http://zlib.net zlib]
** [http://www.audiocoding.com/faad2.html FAAD2]
** [https://theora.org Theora]
** For Freetype
*** [http://www.bzip.org bzip2]