Fixed all compile errors.