MinGW support and added a cast operator String -> CBString.