Clang compatibility

* Separated sqlite3.c into a static library that PKMDS links against
* Removed implicit casts from strongly-typed enums
Merge pull request #10 from ncorgan/clang_support

Clang compatibility