Make rpng C89 compatible