ga_client: fix building with VS
API: replace all explicit unsigned long with ulong

Also fix includes order in bs_alg_api.cpp to make it compile in Linux.