Solaris 10 + gcc port

* check header <sys/wait.h> macro WEXITSTATUS()
* Makefile.in: PREFIX = @prefix@