Fix moc not getting the #if defined right

Slots were not configured in moc when there are inside #if statements
Fix it with adding the slot on all platforms, but make it do nothing