cpu/cortex-mX_common: fixed type issues

- added explicit cast for stack pointer
- fixed printf type inconsistency
Merge pull request #1509 from haukepetersen/fix_cortexmcommon_cppcheck

cpu/cortex-mX_common: fixed type issues in thread_arch