Finally fix support for OpenBSD

This pull request is the last code from:
https://github.com/LWJGL/lwjgl/pull/54

After this patch, lwjgl successfully runs in OpenBSD 5.5. And it also fixes Minecraft and jPCT in that platform.

Original discussion:
https://github.com/chessgriffin/obsd-minecraft/issues/1