Add support for POSIX message queues

Add support for POSIX message queues; all symbols are protected by #if directives for systems which don't support them.

TODO: mq_notify still unsupported, as luaposix have no support for the sigevent infrastructure.