msvc fixes

Signed-off-by: Tim Blechmann <tim@klingt.org>
detail: use standard detection macros to detect c++11/c99

Signed-off-by: Tim Blechmann <tim@klingt.org>