make buffers go in bss
fix function prototype
remove unrelated linux code