added a lot of debug information for wrong library compiles, etc.