Static julia compilation with own package

Some of the new work described here might help, and may be worth revisiting this issue again, if still open.