Fix #55, fix lib_flags when clang is gcc