fmemopen moved to test/ subdir as it is not needed for the main library
do not attempt to compile tests if there is no fmemopen() or funopen()
gotten rid of non-prefixed typedefs in basic_types.h