Fixed build on Linux, also added a base class for digest engines.