Qt5: Fix malloc inside ifdef