Converted the OSX port to C89

It now builds with llvm-gcc-4.2 shipped by apple.
Also fixed some warnings
X11: Avoid C99 struct initializers