Reverted manual hack that sets the right platform