Various changes to get ForestDB compiling as part of Sherlock build

Change-Id: I9c5397b2a8f55c9a2d30c85cb4cf4da1bfa59a21