Use #define instead of const char* for version.

You can't initialize strings in header files, because they might be included from several source files and the linker will see several copies of the same string.
Also -fPIC is needed in some cases.