Fix maven dependency as optional