fixed cuda support, added module type HEADER