fixed minor compilation issues