Changed pow function bodies to be a little stricter in it's internal conversions in a bid to stamp out some gcc failures.