using boost iequal instead of non portable wcsnicmp; fixed declaration of BeginSelecting on g++