fix defines / platform