Add configure check for libm/pow. Fixes Linux build issue.