support out-of-source build

The patch allows to create a working out-of-source build tree:

git clone https://github.com/domibel/bamtools.git
mkdir bamtools-build
cd bamtools-build
cmake ../bamtools
make

The source tree bamtools stays completely untouched.