use boost instead of doing it ourselves
use codecvt so we can use the W function, FormatMessageA has some very odd behavior
token_foreach is only used in one location... so prepare to replace it with standard libary functions
use bool for a boolean