Added possibility to build as shared extension and fixed operators.c for use in php5.5