autotools: add subdir-objects option
node: refactore node_alloc()