fixes for compilation, has error to allocate DSEG