build for portal and add system library