added support for reading from stdin
Added support for building shared libs, removed apps

Conflicts:
	Makefile