Setting up a Dynamic Library