Syntactic changes and removal of static constructors in profiling/ and util/

Similar changes to 01115c9c, however I have now also removed static constructors.