included unistd.h in cmpxpoly.cpp. seems necessary.