update the photoshop plugin and perpare the editor

- configure the cmake for plugin
- compile the .r for plugin
- fix some compiler errors