app: remove some <unistd.h> and other includes

that were needed before we switched to using GLib APIs in these files.