Makefile improvements & compiler warnings fixed

I noticed a few things wrong with the makefile during the rebuild (arch linux AUR), so I fixed them.