Fixed some library problems.