So after going through the nim manual i found out that you can overide the
compilers gc safe analysis to assign non gc safe variables to local proc
variables like so
{.cast(gcsafe).}:
let
SERVER_HOST = SERVER_HOST
SERVER_PORT = SERVER_PORT
MONGO_HOST = MONGO_HOST
MONGO_PORT = MONGO_PORT
RunThis still feels illegal though but since the global variables are immutable i think all is well
