cmd ls works but problem with stat, compiling