Cosmetic changes for clean MSVC @W4

As part of issue #45, this commit restructure some minor implementation
details so compiling with MSVC with warning level set to 4 is clean.
Fix improper modulo usage in MSVC align_ptr