ignore targa too
guard windows implementations in #ifdef _WIN32
prevent inclusion of windows unistd.h replacement when not on windows
Merge branch 'cmake'