Fixed some compiliation problems.