Cray build at titan

Modified Makefile to support CCE on titan; and source code changes.