fix header build make file for unix-like hosts
use -p parameter for mkdir