help out compilers that use two phase lookup as dictated by the standard
Merge pull request #298 from Bigpet/twophasefix

help out compilers that use two phase lookup as dictated by the standard