fixed building on 64bit