update .gitignore
Fix Makefile: support Linux, respect env

Respect CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS
Changed the order of the arguments to attempt to address issue #15
Adresses issue #17
Fix Makefile: support Linux, respect env

Add support fox Linux.
Respect CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS, DESTDIR.
Fix building with '-Wl,--as-needed'.
Fix 'make install'.
Link only to required libs.
Add missing rules, remove rules for non existing files.

Solves issue #3 and issue #15
Merge remote-tracking branch 'nikoli/build_system2'
Addresses #3, #14, #15, #16, #18

Conflicts:
	Makefile
added more build executables to .gitignore issue #14
These have been moved to another repository.
yuvdiag now uses freetype.
Merge remote-tracking branch 'nikoli/build_system2'

Conflicts:
	Makefile
Merge remote-tracking branch 'nikoli/build_system'

Conflicts:
	.gitignore