minor: fix warning from mkdir
add missing include
remove unused struct