build-sys: replace nm with $(NM)