Add missing includes needed since gcc 12.2.1.
The new gcc in fedora 37 tidied up the includes. fabs, round, array... are no longer imported by other includes. So a set of cmath and array includes have to be added. This MR does that. Tested on fedora 37 and should not have any spurious effect with other compilers.