xmalloc: Add attribute warn_unused_result to allocation functions