Define and use dupstr() and alloc() macro helpers