Add library and correction on build seg