Fixed some implicit declarations of functions by putting signatures in header.