Revert "Make use of xasprintf instead of asprintf"

This reverts commit a143739ed286cf9ae003792dbb1ce26ce43f3312.

Our current setup doesn't allow lib/*.c files to call functions defined
in plugins/utils.[ch].