WIP: static compile julia

When finished, this will generate a statically compiled dynamic library along with the system image.