Updated autotools configuration for building java bindings.