Some necessary hacks for compilation purposes
Added platform and device