build: Add optimization and debug compiler options

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>