Fix pow function call

Fix call 'pow' is ambiguous error at OSX