Make makefile compatible with both g++ (target: gnu) and intel (target: intel) compilers. (intel untested)