libm5: Create a libm5 static library for embedding m5.