Fix the remaining bugs. Except an asprintf redefinition, too lazy to care right now.