Make static linking & package script work on Linux again