Core/SmartAI: Implement SMART_TARGET_CLOSEST_ENEMY. Required for upcomin...

...g EAI to SAI conversion.