Fix install targets in Makefile

This fixes a few issues with the Makefile:

* `install -D` is not portable, `mkdir -p` is
* The static library doesn't need exec permissions
* The `$<` variable is somewhat unportable and also unclear/unnecessary