make: feature sizeof(int) and sizeof(void*)

This PR provides the macros `SIZEOF_PTR` and `SIZEOF_INT` for
preprocessor statements. The rationale is that you cannot use e.g.
`#if sizeof(int) == 4`, as the preprocessor won't evaluate the size.

Partially fix for #1221.