don't include features.h
move opening brace out of ifdef to make code folding work