tweak cpp build recipe to pull out all source elements