Update bstrlib_unixcracker.c

Swapped bgets for fgets and fixed a memory leak.