Fix compilation error when using the Android NDK

The Android NDK complains that snprintf isn't in the std library when compiling with C++11 support.

Google tells me that this function has been merged into the global namespace in C++11, so this patch checks for the C++ version and removes the namespace if >= 11.