Switch to gradle based build system