Fixes #10, Fix boolean detection on 64bit devices