Added -std=gnu++11 to make native code build properly on Linux.