fixed some g++ warnings in portal.cpp
added include path ../../cpp and compiler argument -pthread to Linux Makefile
fixed format specifiers, e.g., %d -> %ld
generate status regs to read indication request number and priority