Merge remote-tracking branch 'rich/cleanup' into development

* rich/cleanup:
  Added missing stdio in lib x509.c needed for sscanf
  Remove platform guard in mem buffer alloc
  Cleanup programs further
  cleanup programs