A possible fix for possible clang alignment issues.
Reuse foundation pow2 functions.
Simplified things and small improvements in alignment fixes for clang.
Merge pull request #341 from est77/OSL_align

OSL alignment fixes