switch from ulong to uint for pos

uint fixes compile issues on Windows
added VS solution