[Ticket #27] Make sneaker be able to build under both Ubuntu and OS X

Makefile refactoring
Merge branch 'linux-port' of github.com:yanzhengli/sneaker into linux-port

Conflicts:
	src/Makefile
	tests/Makefile