minor fixes:

remove unneeded ref to openssl include header
use format string with fprintf
buffer overrun in cleanup_mwxml()
no inline compiler warnings

Change-Id: I774cd9de602a250d042119374cc2bc749316611e