Made it compile on Linux. Doesn't actually work yet.