scons: only compile optional cpp files that really can be built