strnlen implicit declaration fix