Fixed applying patches for definitions with APP_POSTFIX