fix missing limits when only _BSD_SOURCE is defined