modified src/Makefile.am to provide DATADIR macro

use DATADIR before filenames in src. e.g.:
infile.open(DATADIR "earth.png");
also cleaned up Makefile.am in other subdirs to point the
preprocessor to the correct include and link directories