added build flags and added windows compatibility to ls