First steps to getting it to compile with gcc. A long way to go.