Fix compilation and runtime on QNX based systems

The latest release of luaposix makes use of several APIs that are simply not present on the QNX platform. More annoyingly, the SysV message passing API is present in QNX's headers, but not in their runtime C library. This patch makes necessary changes to autoconf and to the implementation files to allow luaposix to load and run as expected on a QNX platform.