Make libXmx compile without warnings

Aparently it was sufficient to include some headers and fix one type signature.