Fix compile warning in compat.h

gcc complains that there is no return statement outside of conditional (#ifdef) code in dirent_size. This patch makes gcc happy.