add dist target and check target as alias for tests
add check for null pointer and re-enable test
set CFLAGS only when not already defined