Fix and extend HACKING docs on writing build/someplugin.m4