Fixed generating debug info for libraries