This does the following:
* Automatically generate icons from the SVG file as part of the binary build.
This will also ensure that the xournalpp.exe binary has an icon. As a result,
we need ImageMagick as a dependency.
* Replace the manual setup in `windows-setup/build-setup.sh` with a
`windows-setup/package.sh` script that uses the CMake package as a base and
then copies the additional runtime files (e.g. MinGW shared libraries). This
has the benefit of not needing us to update the windows build script when we
add additional resource files.
Changed <stdio.h> to <cstdio> and <stdlib.h> to <cstdlib>.
Changed NULL occurences with nullptr.
Replaced some occurrences of sprintf with snprintf and used the uintN_t
format specifiers.
kpsewhich could not be found because GTK on windows needs to use the
`gspawn-win32-helper` program to spawn processes.
This commit also improves kpsewhich error reporting.
The issue seems to be that libcrypto and libssl are already included in
the Windows CI image by default, causing them to not be copied. This patch
ensures that they're copied if the application is linked with the system
libcrypto/ssl.