Fix build on ubuntu 14.04

WARNING: this pull request is base on try-error in Ubuntu 14.04 with little knowledge on building Code::Blocks plugins, and is not considered sane enough to be merge.