Add queue_empty and queue_single.

Had to add these macros to NETLIB and figured they would likely be useful in here also.