Fixed code. Removed -std=C++11 dependency.
Changed order.