allow compilation using clang

tested with clang 3.4
pass -fuse-ld=gold when using it