Clean up foothold code a bit.

Signed-off-by: Peter Atashian <retep998@gmail.com>
Better error handling on windows.
Also update copyright years.

Signed-off-by: Peter Atashian <retep998@gmail.com>
Merge remote-tracking branch 'snake/master'
main.cpp: Wrap Windows specific includes in ifdef