gcc params added
included string.h and fixed _write. Errors from warnings