add cppflags and rpath