Fix build for jar