fix K20 arch compile bugs