Remade build system to work around eclipse build directories.