> Nim could be used to build static/shared libraries? yes. You can use compiler switch \--app:lib (shared lib) or \--app:staticLib
> I'm supposed that the GC should be turned off yes/no. You can keep Nim's GC around in a static lib but don't forget to call NimMain() to initialize the GC.