fix multi-threaded FMDB usage with FMDatabaseQueue
add osx platform