Makefile: be more robust against toolchains without syscalls