the hack of redefining fopen is no longer necessary. Link -lrtemsall before -lrtemsCom to ensure that the configuration information gets pulled from the rtemsCom library.