cmake: refactor the way php import was build
We are using a separate static library named codeimport, as php import
support requires kdevplatform and kdev-php, which cannot be compiled
without NO_CAST_XX_ASCII, which is standard in Umbrello source code.