Correct binary output is supposed to have $(EXEEXT) appended, in order for Doze to be happy. Automake seems to handle the omission gracefully, except for TESTS.
Anyway, it's best to append it, regardless of the target platform. plugins/c/executable.py.