- fixed some compile errors