modified code and setting for enable to complie library.