Fixed use of deprecated API
Turned #pragma messages into comments

Unfortunately there's no other way to suppress them optionally that I can find, and they were the only warnings in our build.