Add well_loss_layer and hadamard_product_layer.
Fix compile.