profiler: Support win32
win32: Support thread priority
sqlite3: Add static binding
MinGW: Mingw32 build fix