fixed dietlibc/non-dietlibc issues in testsuite