Creating shared libraries for Potential and Field (could be used from ROOT)