Fixed compile errors

The project wasn't building for neko, so I untangled all the reported errors. It runs now!