Fixed problems when building both a dietlibc and a GNU version of a