Fixed compilation errors
Fixed platform name retrieval
Added header