Fix --disable-wallet build

When compiling after ./configure --disable-wallet you get an undeclared function error.