Fix compile error in test project

(cherry picked from commit c7111e1cd7f119dab0e7b1cad3e2c2bccf10ff08)
Add PORTABLE45 to release configuration

(cherry picked from commit fc6f0a5d9f69dc4c6458ac1d5612b94c0b21e576)