added support for use without freertos.
backed out of fully thread aware filesystem for now.