Made it possible to work with Demigod as a library.