Only define core extensions if they do not already exist
Add String#flush core extension
Fix string %Q literals