Reverts xlib changes and enables C++11 on Linux