minor: fix warning from mkdir
add missing include
remove unused struct
Merge pull request #6 from mehlis/master

minor fixes