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

...g EAI to SAI conversion. Compatible with SMART_ACTION_MOVE_TO_POS.