Fix missing braces in generated callback tables
Fix #pragma
Fix -Wall warnings