Moved compile utilities to a library.