Fixed linker issue with g++ 4.7