Makefile for Linux Mint, and improved OS detection. 

Cross-compilation should work as-is, but I couldn't test it for CentOS and SUSE.