have working makefile, fixed headers to compile on nersc