sqlite: Fix issue with WINAPI functions