fixed some build warnings in 64bit
changed page directory free functions around a bit