Fixes for cmake 2.8.12

For some unknown reason, cmake doesn't pass macro definitions from
add_definitions() to moc anymore.
Added ItemSync plugin for synchronization with files