correct usage of calling convention/export macros for commonui project