Changed build system to use maven