Fixed ambiguous pow commands that prevented compilation on my OS X machine with gcc 4.2.1