Adds x64 build for log_sqlite and fixes some other build issues