Added some explicit type declarations to deal with older compilers.