Fix link error with GCC 4.8
Credits to blueness