Fix mkdir for OS X

"mkdir static -p" doesn't work on OS X, change to "mkdir -p static"

Always adds newline to end of Makefile.