move memory initializer pattern to shared
first working static linking test