Attempt at cross-platform loader. Will test on Windows shortly.