Dirty hack to fix platform detection problem