fixed type of __builtin_expect
added information to error message