On freebsd, the macro LIST_PREV already exists in the header file <sys/queue.h>, and this makes a build error. This patch removes the macros before declaring it. This ensure that the error doesn't occurs.