add missing license headers
fix java compile