added build of tools to bam.lua
changed #include <mathlib.h> to #include <delta.h>