make controlsconfigcommon.cpp cross platform

backported from scp

Signed-off-by: Matthew Khouzam <matthew.khouzam@gmail.com>