Add a way to prevent building of programs on Windows

Some work towards better handling of programs on Windows (#86).