The following command line executes, but doesn't output into the expected directory. It'll write to the current directory.
./extract data/SONGS0.XLD ./out
The almost identical command line works just fine (notice the trailing slash).
./extract data/SONGS0.XLD ./out/