fixed fbdev/*.cc to work with malloc