[BT] Fixed implementation of _calloc_r()
[BT] Added support for conversion of mode flags to bitthunder mode flags.
[BT] Implemented seek, and updated api prototypes for linking with kernel.