Fixed critical error in os_bmfs_file_query

Was returning the memory offset of the slot # in RBX instead of the slot
#.
API fixes

Added a newlib test app.