WIP: automatically generate list of function to precompile

this builds on my existing static compile work #4898 to semi-automatically generate additional functions to precompile.