Added missing unistd header file to device bfs
Silence typedef warnings during compilation
Added missing typedef error files