Fixed some compilation problems.