Now start the program and KEEP it running!
To be able to execute mymain, first it's necessary to compile nimhcr and nimrtl libraries from nim library. To do so, find nim installation directory (in my case it was installed with choosenim and installation directory was ~/.choosenim/toolchains/nim-0.20.2/ ), and execute "nim -d:release lib/nimrtl.nim" and "nim -d:release lib/nimhcr.nim". This will create the required libraries. Set LD_LIBRARY_PATH (or copy the libraries to a system library path) to where libnimrtl.so and libnimhcr.so are located.