Add utility to append a function to the list of global constructors.