nm: Add nm.c source and support for building the nm tool