compat: Disable _gettemp() features that don't compile on Windows

MinGW seems to dislike our calls to mkdir() and lstat(), so omit them
for now.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>