Fix for building with maven