latest changes from master
a little correction to the locale fix to allow the usage of printf variants that takes locale_t as a parameter
minor tweaks for efb to ram