fixed compilation issues.