Build working for both xcode and makefile based builds. Added the ability to specify configuration on the command line which overrides any configuration files found on the path.