Now the lib can be used as a dynamic lib