Might be a problem with the linker

Is the -lPStream necessary (this is really weird)?

What system do you have again?