Added margin of error to bounding box calculation; fixed issue with VS
compilation.