I've found that compiling mrtd (any 2.x branch) results in a failed compile. Edit <source-tree>/lib/kernel/socket.c and comment out the struct in_pktinfo definition in the #ifdef linux macro. Then do a make clean and a make. This worked for me.
PJ Waskiewicz