Proper setup of dynamical lib and jars