Use $(EXEEXT) [defaults to "exe"] to generate binaries