Not sure why it fails if it's in a subdirectory, but it fails inside some Qt macros. Moving it into the main file makes things work again.
mentioned in commit 964e484f