Fixed minor compile errors