adding debug flag to build script

@lars2893 @christynicol 

Adding a debug flag so that stack traces will have line numbers in them.