Added support for multiple configurations and architectures to Makefile.