Countless fixes for errors and warnings to fix compilation of src/mp/null

Error fixed include fixes for badly defined typedef in headers and other
things that impact for sure other modules.