make HeadlessWorkspace respect compilerFlags one more place

this was breaking the Tortoise docking tests because code inside
`declare` was getting compiled with optimization on

fixes NetLogo/Tortoise#30