libmpc: modernize
libmpc: add test

Closes #35354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>