compiles linux, but seg faults