Added cgo flags to unqlite enabling threadsafe build.