reorg core libs as sys components