Fixed some 38 compile errors