rescodes: fix deprecated header inclusion warning