[PECOFF] Add a helper function to read an integer from .def file.