make bamtools compile on FreeBSD

Hello. I have added a conditional include so as to make bamtools compile on FreeBSD.