Without the code its difficult to tell why the errors are occuring but you can try replacing __va_list with va_list probably.