Fixed cross compilation on unix build

| Q               | A
| --------------- | ---
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Tests pass?     | ?
| Related tickets |
| License         | GNU GPLv3