Fixed minor issues with PostgreSQL 9.3

LANGUAGE C in all function declarations
replaced int4 with int32
extension script for CREATE EXTENSION