I've played the game again and managed to get all 4 endings. The library turned out to be a red herring after all. A decent game, but the enemies could be somewhat less persistent. Good job!