Fixed some compile issues.