Fixed build in non framework env.