Fixes Mac - level-db build issues.

Me and Mahmoud have tested the change on Win, Mac & Linux.