Added some missing macro definitions.
Added option macros.
Fixed macros for release builds.
Added ECCastTo definition
Updated copyrights in code.
Don't quote the key in ECOptionEnabled - this allows us to use it as a variable to cache the value.