Make LINCS setup code platform-agnostic