add bswap16 for gcc < 4.8