static-cast arguments to pow for Mac OS X compile

cc @luizirber