Conditional compilation added in order to compile the thrust related stuff under Linux
Changes were made in order to compile under Linux