Fix undefined references issues for pow

Linker is complaining about missing math functions (like pow) even though we have
-lm in "Makefile.include". If we put "-lm" as last statement it just works