fixed gpu/matlab build