Added some simple platform detection