fix makefile and create namespace cppdft