Seperated libsg into seperate directory