Add STATIC varible to Constants.mk to make static linking optional;
change XOR in California makefile to AND to avoid change of behavior
with different versions.