Add option to select static linking of executables
deps: add support for building server with musl

The libraries required for the client are not enabled for Linux, since
it's not possible to static link the OpenGL library (it is a .so
provided by the driver vendor).
deps: fix MinGW detection
Generate map file for narfblock executable
Represent time diffs as microseconds in 64-bit int