fix two warnings that cause strict compilation failure