Fixed some compilation issues.