How to fix builds

http://stackoverflow.com/questions/2197918/cross-platform-way-of-testing-whether-a-file-is-a-directory


error: structure has no member named `d_type'
error: `DT_DIR' undeclared (first use in this function)

# error: 'struct msghdr' has no member named 'msg_control'
-D_XPG4_2


# error: 'TIOCGWINSZ' was not declared in this scope
#include <termios.h>