more changes for compiling pcieportal.h