core: minor fixes
meta: monkey-patch ply bundled with pycparser, if necessary