Static julia compilation with own package

@ihnorton I finally prepared a reproducible example on How correct open and close Julia DLL in C++?