Fixed issues with AMD platform compilation