FIX: added rd_memctx_strdup RD_UNUSED, and cosmetics changes