Compile LibDS as a separate library