attempt at static linking