fixed some compile errors for gap_buffer and screen_controller