Add the fixes to make the application run on Linux. Wait until #29 or #37 so it can be properly tested.