Fixe serval issues

1.  Fixed double free while json_decode('{ "" : ""');
2.  Fixed constant name registered
3.  Fixed Macro under PHP_JSOND_PRIMARY
4.  Fixed build with PHP-5.2 ~ PHP-5.4

thanks