because netbsd's uname has no "-o" option .... I hope in those makefiles this does not matter (I used "-o" mostly because uname on termux still return just Linux, while libc/other components and paths different here).
Can you also look at noexecutable stack patch?