more ifdef-ing for OS support of data/text segment
add trivial test