added compiling with Dynamic