Make periph librarie makefiles cross platform