use define in compile instead of string replacement of HP size
added the round function that is missing on windows