You still need to make sure the those env vars are set correctly.
And you also still need to link against the qnx libc, unless you are doing a bootloader etc...