Added modern Jakefile, fixed most compiling warnings due to imports